home *** CD-ROM | disk | FTP | other *** search
- // DialogThread.cpp : implementation file
-
- #include "stdafx.h"
- #include "Progress.h"
- #include "DialogThread.h"
- #include "ProgressDlg.h"
-
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
-
- #endif
-
-
- /////////////////////////////////////////////////////////////////////////////
- // DialogThread
-
- IMPLEMENT_DYNCREATE(DialogThread, CWinThread)
-
- DialogThread::DialogThread()
- {
- }
-
- DialogThread::~DialogThread()
- {
- }
-
- BOOL DialogThread::InitInstance()
- {
- ProgressDlg Prog; // dialog box
-
- g_pProgBar = &Prog; // save pointer to new dialog box for use outside this thread
-
- Prog.DoModal(); // put in on the screen
-
- return TRUE;
- }
-
- int DialogThread::ExitInstance()
- {
- // TODO: perform any per-thread cleanup here
- return CWinThread::ExitInstance();
- }
-
- BEGIN_MESSAGE_MAP(DialogThread, CWinThread)
- //{{AFX_MSG_MAP(DialogThread)
- // NOTE - the ClassWizard will add and remove mapping macros here.
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
-
- /////////////////////////////////////////////////////////////////////////////
- // DialogThread message handlers
-
-
-